package com.thc.orderfallback;

import com.thc.domin.Ticket;
import com.thc.feignclient.MovieFeignClient;
import org.springframework.stereotype.Component;

@Component
public class MovieClientFallback implements MovieFeignClient {
    @Override
    public Ticket findById(Long id) {

        Ticket ticket = Ticket.builder()
                .movieName("电影服务出现异常")
                .build();
        return ticket;
    }
}
